home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000428_j+usenet@2004.salmi.ch_Wed Oct 27 13:11:40 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Path: newsmaster.cc.columbia.edu!newsfeed.nyu.edu!newsfeed.arcor.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: Jukka Salmi <j+usenet@2004.salmi.ch>
Newsgroups: comp.protocols.kermit.misc
Subject: abusing kermit for Xmodem uploads
Date: 27 Oct 2004 15:22:32 GMT
Lines: 72
Message-ID: <2u9spoF28kmiqU1@uni-berlin.de>
X-Trace: news.uni-berlin.de HPVq4ldQNrCTrRCBcRHueA9if+lVYz5kIoBGnXTUcgcxPWIDk=
User-Agent: slrn/0.9.8.0 (NetBSD)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15212
Hi,
I'm trying to do Xmodem uploads from a NetBSD 2.0 system to a
Soekris net4501 using kermit and lrzsz. I know how to do this
using tip(1)/cu(1) and lrzsz, but I'd like to achieve the same
using kermit. However, I've never used kermit before...
When using tip, I connect to the corresponding serial port, use
the "download" to put the net4501 in "receive mode", use tip's ~C
escape to fork a child process, and start uploading the file
with "lsz -X file".
How can I do this with kermit? So far I tried the following kermit
commands:
set protocol xmodem-crc download {} {lsx %s} {} {lrx %s} {}
set line /dev/tty00
set speed 9600
set carrier-watch off
set flow-control xon/xoff
send /binary file
but this fails:
Sending file, 608 blocks: Give your local XMODEM receive command now.
Xmodem sectors/kbytes sent: 0/ 0kRetry 0: Got 52 for sector ACK
Retry 0: NAK on sector
Retry 0: Got 20 for sector ACK
Retry 0: Cancelled
Transfer incomplete
*************************
SEND-class command failed.
Packets sent: 0
Retransmissions: 0
Timeouts: 0
Damaged packets: 0
HINTS... If the preceding error message does not explain the failure:
. Did you start a Kermit receiver on the far end?
. Try it again with SET STREAMING OFF.
. Try it again with SET PARITY SPACE.
. As a last resort, give a ROBUST command and try again.
Also:
. Be sure the source file has read permission.
. Be sure the target directory has write permission.
(Use SET HINTS OFF to suppress hints.)
*************************
A diff between stty outputs when using tip and when using kermit
gives:
$ diff tty00.kermit tty00.tip
5,6c5,6
< iflags: -istrip -icrnl -inlcr -igncr ixon ixoff -ixany imaxbel ignbrk
< brkint -inpck ignpar -parmrk
---
> iflags: -istrip -icrnl -inlcr -igncr ixon ixoff ixany imaxbel -ignbrk
> brkint -inpck -ignpar -parmrk
Help is appreciated!
Regards, Jukka
[1] http://www.ohse.de/uwe/software/lrzsz.html
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~